﻿@model File_Manager.Models.Post_CYT

@{
    ViewBag.Title = "Crear";
}

<h2>Soporte CYT</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Datos Remitente</legend>
            <table width="100%">
                <tr>
                    <td>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.asunto)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.asunto)
                            @Html.ValidationMessageFor(model => model.asunto)
                        </div>
                    </td>
                </tr>
            </table>
    </fieldset>
    <fieldset>
        <legend>Datos Mensaje</legend>
           <table width="100%">
                <tr>    
                    <td>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.textoGuest)
                        </div>
                        <div class="editor-field">
                            @Html.TextAreaFor(model => model.textoGuest, new { rows = "6", cols = "80", maxlength="300" })
                            @Html.ValidationMessageFor(model => model.textoGuest)
                        </div>
                    </td>
                </tr>
        </table>
        @if (ViewBag.postPending == 0)
        {
        <p>
            <input type="submit" value="Enviar" />
        </p>
        }
        else
        {
            <input type="submit" value="Enviar" disabled="disabled"/>
            <p> Debe Esperar que se le responda el Ticket Pendiente, para Crear uno Nuevo.</p>
        }

    </fieldset>
}

    <div>
        @Html.ActionLink("Ir Atras", "SearchIndexG")
    </div>

